/**   
* @Title: MyPasswordEncoder.java
* @Package me.cloud
* @Description: TODO
* @author xaoyaoyao
* @date Dec 21, 2018 4:51:18 PM
* @version V1.0   
*/
package me.cloud.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @ClassName: MyPasswordEncoder
 * @Description: TODO
 * @author xaoyaoyao
 * @date Dec 21, 2018 4:51:18 PM
 * 
 */
public class MyPasswordEncoder implements PasswordEncoder {

	@Override
	public String encode(CharSequence charSequence) {
		return charSequence.toString();
	}

	@Override
	public boolean matches(CharSequence charSequence, String s) {
		return s.equals(charSequence.toString());
	}
}
